<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <hdjs/>
    </head>
    <body>
		    <div class="wrap">
		    	<div class="menu_list">
		    		<ul>
		    			<li><a href="{|U:'index'}" class="action">商品类型</a></li>
		    			<li><a href="{|U:'add'}">添加类型</a></li>
		    			<li><a href="{|U:'updateCache'}">更新缓存</a></li>
		    		</ul>
		    	</div>
		    	<table class="table2">
		    		<thead>
			    		<tr>
			    			<td class="w30">GTID</td>
			    			<td class="">类型名称</td>
			    			<td class="w150">操作类型</td>
			    			
			    		</tr>
		    		</thead>
		    		<tbody>
		    			<list from="$data" name="n">
		    			  <tr>
		    				<td class="w30">{$n.gtid}</td>
			    			<td class="">{$n.gtname}</td>
			    			<td class="w80">
			    				<a href="{|U:'update',array('gtid'=>$n['gtid'])}">修改</a>
			    				<span class="line">|</span>
			    				<a href="javascript:hd_confirm('确证删除吗？',function(){hd_ajax( 'del', {gtid: {$n.gtid}})})">删除</a>
			    				
			    				<span class="line">|</span>
                        <a href="{|U:'addGoodsAttr/index',array('gtid'=>$n['gtid'])}">属性管理</a>
			    			</td>
                   </tr>
                </list>
		    		</tbody>
		    	</table>
		    </div>
    </body>
</html>